package com.example.votemanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("auction")
@NoArgsConstructor
@AllArgsConstructor
public class Auction implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "auctionId",type = IdType.AUTO)
    private Integer auctionId;
    @TableField(value = "auctionName", exist = true)
    private String auctionName;
    @TableField(value = "auctionStartPrice", exist = true)
    private Integer auctionStartPrice;
    @TableField(value = "auctionUpset", exist = true)
    private Integer auctionUpset;
    @TableField(value = "auctionStartTime", exist = true)
    private String auctionStartTime;
    @TableField(value = "auctionEndTime", exist = true)
    private String auctionEndTime;
    @TableField(value = "auctionPic", exist = true)
    private String auctionPic;
    @TableField(value = "auctionPicType", exist = true)
    private String auctionPicType;
    @TableField(value = "auctionDesc", exist = true)
    private String auctionDesc;
}
